<%--
  Created by IntelliJ IDEA.
  User: A415
  Date: 2024/6/11
  Time: 19:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<style>
    .nav-wrap>li, .nav-item {
        float: left;
        line-height: 68px;
        width: 128px;
        text-align: center;
        color: #533336;
        font-size: 18px;
    }
</style>
<div class="clearfix nav">
    <a class="logo" href="javascript:;"></a>
    <ul class="clearfix nav-wrap">
        <li><a class="nav-item nav-active" href="${pageContext.request.contextPath}/IndexServlet001">首页</a></li>
        <li><a class="nav-item" href="${pageContext.request.contextPath}/IndexServlet001">品牌故事</a></li>
        <li><a class="nav-item" href="${pageContext.request.contextPath}/GoodsServlet136/list">美食系列</a></li>
        <li><a class="nav-item" href="${pageContext.request.contextPath}/IndexServlet001">店面展示</a></li>
        <li><a class="nav-item" href="${pageContext.request.contextPath}/IndexServlet001">新闻资讯</a></li>
        <li><a class="nav-item" href="${pageContext.request.contextPath}/IndexServlet001">关于我们</a></li>
        <!--
        -->
        <c:if test="${not empty sessionScope.get('USER_INFO')}">
            <!-- 你的代码，当"yourAttributeName"存在时 -->
            <li><a class="nav-item" href="${pageContext.request.contextPath}/UserServlet136/center">${sessionScope.get("USER_INFO").getUsername()}</a></li>
        </c:if>
        <c:if test="${empty sessionScope.get('USER_INFO')}">
            <!-- 你的代码，当"yourAttributeName"存在时 -->
            <li><a class="nav-item" href="${pageContext.request.contextPath}/UserServlet136/reg">注册</a></li>
            <li><a class="nav-item" href="${pageContext.request.contextPath}/UserServlet136/login">登陆</a></li>
        </c:if>
    </ul>
</div>

<div id="container">
    <div id="buttons">
        <span index="1" class="on"></span>
        <span index="2"></span>
        <span index="3"></span>
    </div>
    <a href="javascript:;" id="prev" class="arrow"><img src="${pageContext.request.contextPath}/frontend/img/l.png"/></a>
    <a href="javascript:;" id="next" class="arrow"><img src="${pageContext.request.contextPath}/frontend/img/r.png"/></a>
</div>
